Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
Loading...
Searching...
No Matches
isink.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2019 Roc authors
3
*
4
* This Source Code Form is subject to the terms of the Mozilla Public
5
* License, v. 2.0. If a copy of the MPL was not distributed with this
6
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
7
*/
8
9
//! @file roc_sndio/isink.h
10
//! @brief Sink interface.
11
12
#ifndef ROC_SNDIO_ISINK_H_
13
#define ROC_SNDIO_ISINK_H_
14
15
#include "
roc_audio/iwriter.h
"
16
17
namespace
roc
{
18
namespace
sndio {
19
20
//! Sink interface.
21
class
ISink
:
public
audio::IWriter
{
22
public
:
23
virtual
~ISink
();
24
25
//! Get sample rate of the sink.
26
virtual
size_t
sample_rate
()
const
= 0;
27
28
//! Check if the sink has own clock.
29
virtual
bool
has_clock
()
const
= 0;
30
};
31
32
}
// namespace sndio
33
}
// namespace roc
34
35
#endif
// ROC_SNDIO_ISINK_H_
roc::audio::IWriter
Audio writer interface.
Definition:
iwriter.h:21
roc::sndio::ISink
Sink interface.
Definition:
isink.h:21
roc::sndio::ISink::has_clock
virtual bool has_clock() const =0
Check if the sink has own clock.
roc::sndio::ISink::sample_rate
virtual size_t sample_rate() const =0
Get sample rate of the sink.
roc
Root namespace.
iwriter.h
Audio writer interface.
roc_sndio
isink.h
Generated by
1.9.5